package com.zhijiaoyun.controller.api.mobile;

import com.zhijiaoyun.common.Constant;
import com.zhijiaoyun.controller.base.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author shisfish
 * @date 2018/1/18
 */
@Controller
@RequestMapping(value = "/api/mobile/message", produces = "application/json; charset=utf-8")
public class MessageMobileApi extends BaseController {


    @ResponseBody
    @RequestMapping(value = "/add-feedback", method = RequestMethod.POST)
    public Map<String, Object> feedbacks(String content, HttpServletRequest request) {
        feedBackServie.saveFeedBack(content, Constant.DEVICE_MOBILE, request);
        return responseSuccessMap();
    }

}
